package com.ruoyi.web.controller.mall.mallCompanyUser.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 企业用户对象 mall_company_user
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class MallCompanyUser //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 企业用户id */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 上级id（初始用户为0） */
    @Excel(name = "上级id", readConverterExp = "初=始用户为0")
    private String parentId;

    /** 企业名称 */
    @Excel(name = "企业名称")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 网址 */
    @Excel(name = "网址")
    private String website;

    /** 公司地址 */
    @Excel(name = "公司地址")
    private String address;

    /** 公司资质 */
    @Excel(name = "公司资质")
    private String imgurl;

    /** 密码（保留字段） */
    @Excel(name = "密码", readConverterExp = "保留字段")
    private String password;

    /** 0初始用户1采购员2审核员3复核员 */
    @Excel(name = "0初始用户1采购员2审核员3复核员")
    private Integer level;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private String createId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date caAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date upAt;

    /** 0默认1删除 */
    private Integer delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setWebsite(String website) 
    {
        this.website = website;
    }

    public String getWebsite() 
    {
        return website;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setCaAt(Date caAt) 
    {
        this.caAt = caAt;
    }

    public Date getCaAt() 
    {
        return caAt;
    }
    public void setUpAt(Date upAt) 
    {
        this.upAt = upAt;
    }

    public Date getUpAt() 
    {
        return upAt;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("website", getWebsite())
            .append("address", getAddress())
            .append("imgurl", getImgurl())
            .append("password", getPassword())
            .append("level", getLevel())
            .append("createId", getCreateId())
            .append("caAt", getCaAt())
            .append("upAt", getUpAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
